<script setup>

import {uploadFileService} from '@/api/user'

</script>



<template>
    <h1>用户信息
    </h1>
    <el-upload class="avatar-uploader" :http-request="(file) => uploadFileService(file)"
        :show-file-list="false" :on-success="handleAvatarSuccess" :before-upload="beforeAvatarUpload">
        <img v-if="imageUrl" :src="imageUrl" class="avatar" />
        <el-icon v-else class="avatar-uploader-icon">
            <Plus />
        </el-icon>
    </el-upload>
</template>



<style scoped>

</style>
